package com.infore.statisticsAndAlarm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.infore.statisticsAndAlarm.service.IKeyWorldService;
import com.infore.statisticsAndAlarm.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "知识库热词管理接口", tags = {"知识库热词管理接口" })
@RestController
@RequestMapping("/keyWorlds")
public class KeyWorldController {

	@Autowired
	private IKeyWorldService iKeyWorldService;
	
	@ApiOperation(value="按次数查询热词")
	@GetMapping(value = "/query")
	public ResultEntity query() {
		return iKeyWorldService.query();
	}
}
